<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <title>安装系统 - 后台管理系统 - JSUPHP框架</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
    <!-- ================== BEGIN BASE CSS STYLE ================== -->
    <link href="/static/template/assets/css/material/app.min.css" rel="stylesheet" />
    <!-- ================== END BASE CSS STYLE ================== -->
</head>

<body class="">
    <div class="container">
        <form class="row" @submit.prevent="submit">
            <div class="col-12 mt-2">
                <div class="text-center">
                    <h2>JSUPHP框架</h2>
                </div>
                <div class="card">
                    <div class="card-header">
                        数据库信息
                    </div>
                    <div class="card-body">
                        <div class="form-group">
                            <label>数据库地址</label>
                            <input type="text" class="form-control" v-model="form.hostname" placeholder="比如:127.0.0.1">
                        </div>
                        <div class="form-group">
                            <label>数据库端口</label>
                            <input type="text" class="form-control" v-model="form.hostport">
                        </div>
                        <div class="form-group">
                            <label>数据库用户名</label>
                            <input type="text" class="form-control" v-model="form.username">
                        </div>
                        <div class="form-group">
                            <label>数据库密码</label>
                            <input type="text" class="form-control" v-model="form.password">
                        </div>
                        <div class="form-group">
                            <label>数据库名称</label>
                            <input type="text" class="form-control" v-model="form.database">
                        </div>
                        <div class="form-group">
                            <label>表前缀</label>
                            <input type="text" class="form-control" v-model="form.prefix">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-12">
                <div class="card mt-2">
                    <div class="card-header text-center">
                        管理员信息
                    </div>
                    <div class="card-body">
                        <div class="form-group">
                            <label>管理员账号</label>
                            <input type="text" class="form-control" v-model="form.admin_username">
                        </div>
                        <div class="form-group">
                            <label>管理员密码</label>
                            <input type="text" class="form-control" v-model="form.admin_password">
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-12">
                <div class="card mt-2">
                    <div class="card-body text-center">
                        <button class="btn btn-green btn-lg">安装</button>
                    </div>
                </div>
            </div>
        </form>
    </div>
</body>

<!-- ================== BEGIN BASE JS ================== -->
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/vue.js"></script>
<script src="/static/js/jquery.form.min.js"></script>
<script src="/static/layer/layer.js"></script>
<script src="/static/js/jsu.js"></script>
<script>
    new Vue({
        el: 'form',
        data() {
            return {
                form: {
                    hostname: '127.0.0.1',
                    database: '',
                    username: '',
                    password: '',
                    hostport: '3306',
                    prefix: 'jsu_',
                    admin_username: 'admin',
                    admin_password: '123456',
                },
            }
        },
        methods: {
        }
    })
</script>

</html>